package com.bjpowernode;

import com.bjpowernode.ba07.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest07 {
    @Test
    public  void test07(){
        String config="applicationContext.xml";
        ApplicationContext context=
                new ClassPathXmlApplicationContext(config);
        Student myStudent07 = (Student) context.getBean("myStudent07");
        System.out.println(myStudent07);
    }
}
